#include "CVertex.h"

// Constructors
//-----------------------------------------------------------
CVertex::CVertex( void ) {}

CVertex::CVertex( const CVertex &vertex ){
	this->vertex = vertex.vertex;
	this->normal = vertex.normal;
	this->textura = vertex.textura;
}

CVertex::CVertex( CPunt3D vertex, CPunt3D normal, CPunt2D textura ){
	this->vertex = vertex;
	this->normal = normal;
	this->textura = textura;
}

CVertex::~CVertex( void ) {}


// Lectura de dades
//-----------------------------------------------------------
CPunt3D & CVertex::selectVertex( void ){
	return this->vertex;
}

CPunt3D & CVertex::selectNormal( void ){
	return this->normal;
}

CPunt2D & CVertex::selectTextura( void ){
	return this->textura;
}